function searchCharToString(char,str){
    for(let i=0; i<str.length;i++){
       if(char===str[i]){
         return true;
       }
    }
   return false;
 }
 console.log(searchCharToString("a","fadfafa"))